package com.pi.pro.xcmg.am.was.fac.calculator;



import com.pi.pro.xcmg.am.was.fac.service.WasCustomWorkService;
import com.pi.wms.entity.TwtActTaskList;
import com.pi.wms.entity.TwtActTransList;
import com.pi.wms.fac.impl.BaseTaskBuilder;
import com.pi.wms.fac.impl.BaseTransBuilder;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

/**
 *  复制订单数据到交易/转发XWMS
 */
@Component
public class CustTransBuilder extends BaseTransBuilder {

    @Autowired
    private WasCustomWorkService customWorkService;

    public String build(TwtActTransList trans) {
        String m ="";
        if (customWorkService!=null){
            m = this.customWorkService.syncDocumentDataToTrans(this.asnHeader, this.asnDetails, this.soHeader, this.soDetails, this.allocation, trans);
        }
        return m;
    }

}
